package com.xinruke.hostels.reservation.interfaces.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author GuoZheng
 * @ClassName DiscountsIfCanQueryDTO
 * @date：2019/7/3
 * @version: V1.0.0
 * @description：
 */
@ApiModel("查询用户是否可以享受优惠")
@Data
public class DiscountsIfCanQueryDTO {
    /**
     * 入住性质:1因公；2因私
     */
    @ApiModelProperty(value = "入住性质:1因公；2因私", required = true)
    @NotNull(message = "入住性质不能为空")
    private Byte ruzhuxingzhi;

    /**
     * 证件号
     */
    @ApiModelProperty(value = "联系人id", required = true)
    @NotNull(message = "联系人id不能为空")
    private Integer contactIds;

    /**
     * 房型标准价
     */
    @ApiModelProperty(value = "房间总价")
    @JsonIgnore
    private BigDecimal mendianjia;



    /**
     * 房型id
     */
    @ApiModelProperty(value = "房型id", required = true)
    @NotNull(message = "房型id不能为空")
    private Integer fangxingId;


    /**
     * 数量
     */
    @ApiModelProperty(value = "数量")
    private Integer shuliang = 1;
    /**
     * 入住时间
     */
    @ApiModelProperty(value = "入住时间", required = true)
    @NotNull(message = "入住时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date ruzhushijian;


    /**
     * 离开时间
     */
    @ApiModelProperty(value = "预订离开时间", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @NotNull(message = "预订离开时间")
    private Date jieshushijian;


}
